import request from '@/utils/request'

// 固定资产采购申请分页
export function getList(params) {
  return request({
    url: '/management/administrative/fixedAssets/selectPage',
    method: 'POST',
    params
  })
}

// 固定资产采购申请添加
export function addFixedAssets(data) {
  return request({
    url: '/management/administrative/fixedAssets/insert',
    method: 'POST',
    data
  })
}

// 固定资产采购申请修改查询
export function selectFixedAssets(params) {
  return request({
    url: '/management/administrative/fixedAssets/findId',
    method: 'POST',
    params
  })
}

// 固定资产采购申请删除
export function delFixedAssets(data) {
  return request({
    url: '/management/administrative/fixedAssets/del',
    method: 'post',
    data
  })
}

// 固定资产采购申请修改
export function updateFixedAssets(data) {
  return request({
    url: '/management/administrative/fixedAssets/update',
    method: 'post',
    data
  })
}

// 查所有人
export function selectOperator(params) {
  return request({
    url: '/employee/personnelInfoOther',
    method: 'post',
    params
  })
}

// 模糊查询团队下拉信息
export function selectTeam(params) {
  return request({
    url: '/administrative/teams/getTeamIdAndNameListByName',
    method: 'post',
    params
  })
}

// 价格明细，根据名称查单位、价格
export function selectProductName(params) {
  return request({
    url: '/priceDetail/list/productName',
    method: 'post',
    params
  })
}
